package com.zmzncs.lmtc.module.system.pojo.permission;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 同步权限
 */
@Data
public class PermissionSyncForm {

	@ApiModelProperty(value = "id")
	private Integer id;

	@ApiModelProperty(value = "权限名称")
	private String permissionName;

	@ApiModelProperty(value = "权限编码")
	private String permissionCode;

	@ApiModelProperty(value = "下级权限")
	private List<PermissionSyncForm> children;

	@ApiModelProperty(value = "操作权限")
	private List<PermissionOperation> operationList;

	@Data
	public class PermissionOperation {

		@ApiModelProperty(value = "id")
		private Integer id;

		@ApiModelProperty(value = "权限名称")
		private String permissionName;

		@ApiModelProperty(value = "权限编码")
		private String permissionCode;

		@ApiModelProperty(value = "操作权限")
		private List<PermissionOperation> operationList;

	}

}
